<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nick_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nick_name" class="form-control" name="row[nick_name]" type="text" disabled value="{$teacherInfo.nick_name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Header')}:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline plupload-preview" id="p-images">
                <li class="col-xs-3"><a href="{$teacherInfo.header}"
                                        data-url="{$teacherInfo.header}"
                                        target="_blank" class="thumbnail"><img
                        src="{$teacherInfo.header}"
                        onerror="this.src='https://tool.fastadmin.net/icon/'+'{$teacherInfo.header}'.split('.').pop()+'.png';this.onerror=null;"
                        class="img-responsive"></a></li>
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control"  type="text" disabled value="{$teacherInfo.sex == 'man'? '男' : '女'}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-age" class="form-control" name="row[age]"  value="{$teacherInfo.age}" disabled  type="number" value="0">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Grade')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-grade" data-rule="required" data-source="grade/selectpage" disabled value="{$teacherInfo.grade}"  data-multiple="false" data-primary-key="grade_name" data-field="grade_name" class="form-control selectpage" name="row[grade]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('School')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-school" class="form-control" name="row[school]" disabled  value="{$teacherInfo.school}"  type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('School_age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-school_age" class="form-control" name="row[school_age]" disabled value="{$teacherInfo.school_age}"  type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Certification')}:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline plupload-preview" id="p-images1">
                <li class="col-xs-3"><a href="{$teacherInfo.certification}"
                                        data-url="{$teacherInfo.certification}"
                                        target="_blank" class="thumbnail"><img
                        src="{$teacherInfo.certification}"
                        onerror="this.src='https://tool.fastadmin.net/icon/'+'{$teacherInfo.certification}'.split('.').pop()+'.png';this.onerror=null;"
                        class="img-responsive"></a></li>
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Self_know')}:</label>
        <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-self_know" class="form-control editor" disabled rows="3" name="row[self_know]" cols="30">
                                   {$teacherInfo.self_know}
                                    </textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Honor_know')}:</label>
        <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-honor_know" class="form-control editor" disabled rows="3" name="row[honor_know]" cols="30">
                                     {$teacherInfo.honor_know}
                                    </textarea>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">审核认证:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline plupload-preview" id="p-images">
                {php}if(empty($authList)) echo '
                <div class="col-xs-12 col-sm-8">
                    <input class="form-control" type="text" value="暂未上传相关资料" disabled>
                </div>
                ';{/php}
                {foreach $authList as $v}
                <li class="col-xs-3"><a href="{$v.resouce_img}"
                                        data-url="{$v.resouce_img}"
                                        target="_blank" class="thumbnail"><img
                        src="{$v.resouce_img}"
                        class="img-responsive"></a ></li>
                {/foreach}
            </ul>
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Auth_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="authStatusList" item="vo"}
                <label for="row[auth_status]-{$key}"><input id="row[auth_status]-{$key}" name="row[auth_status]" type="radio" value="{$key}" {in name="key" value="$teacherInfo.auth_status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group auth-reason">
        <label class="control-label col-xs-12 col-sm-2">审核不通过原因:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-auth-reason" class="form-control" name="row[auth_reason]" type="text" value="{$teacherInfo.auth_reason|htmlentities}">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
